import request from '@/utils/request';
let { VUE_APP_ADMIN_API } = process.env;

  //获取单位列表
  export  let  findWorkstationMapList= data => request.post(`${VUE_APP_ADMIN_API}/food/safety/chain/store/findWorkstationMapList`, data)
//   获取经营单位列表
  export  let  findListByCondition= data => request.post(`${VUE_APP_ADMIN_API}/chain/store/superviseunt/findListByCondition`, data)
  export  let  QueryfoodSafetySystemList= data => request.post(`${VUE_APP_ADMIN_API}/food/safety/system/QueryfoodSafetySystemList`, data)
// 联席会议
  export  let  findListByConditionConference= data => request.post(`${VUE_APP_ADMIN_API}/chain/store/conference/findListByCondition`, data)
// 查看联席会议
export  let  findResponseById= data => request.get(`${VUE_APP_ADMIN_API}/chain/store/conference/findResponseById`, data)

  
// 培训记录列表
export  let  findListByConditionTraining= data => request.post(`${VUE_APP_ADMIN_API}/chain/store/training/record/findListByCondition`, data)
// 查看培训记录
export  let  findResponseByIdTraining= data => request.get(`${VUE_APP_ADMIN_API}/chain/store/training/record/findResponseById`, data)
export  let  findResponseByIdIndex= data => request.get(`${VUE_APP_ADMIN_API}/food/safety/chain/store/findResponseById`, data)

// 获取自查列表
export  let  findListByConditionCheck= data => request.post(`${VUE_APP_ADMIN_API}/chain/store/check/result/findListByCondition`, data)
  
export  let  findResponseByIdCheck= data => request.get(`${VUE_APP_ADMIN_API}/chain/store/check/result/findResponseById`, data)
  
export  let  QueryselfExaminationReportList= data => request.post(`${VUE_APP_ADMIN_API}/chain/store/report/QueryselfExaminationReportList`, data)
//   获取分值解读
export  let  findLastByWorkstationId= data => request.get(`${VUE_APP_ADMIN_API}/chain/store/score/findLastByWorkstationId`, data)
  


//   获取分值解读
export  let  findListByConditionScore= data => request.post(`${VUE_APP_ADMIN_API}/chain/store/score/findListByCondition`, data)
  


// 自检管理
export  let  findListByConditionQuickCheck= data => request.post(`${VUE_APP_ADMIN_API}/chain/store/quickcheck/findListByCondition`, data)


export  let  findResponseByIdQuickCheck= data => request.get(`${VUE_APP_ADMIN_API}/chain/store/quickcheck/findResponseById`, data)
// 获取成员架构接口
export  let  findListByConditionMember= data => request.post(`${VUE_APP_ADMIN_API}/chain/store/member/ship/findListByCondition`, data)

// 获取社会责任接口
export  let  findListByConditionPublicity= data => request.post(`${VUE_APP_ADMIN_API}/chain/store/publicity/findListByCondition`, data)




// 履责卡
export  let  findPerformanceCard= data => request.post(`${VUE_APP_ADMIN_API}/ssa/supervise/unit/findPerformanceCard`, data,{loading:true})

export  let  exportPerformanceCard= data => request.get(`${VUE_APP_ADMIN_API}/ssa/supervise/unit/exportPerformanceCard`,  { params: data, isAuth: true, loading: true, responseType: "blob" })

export  let  SafetySystemListEmergency= data => request.post(`${VUE_APP_ADMIN_API}/chain/store/emergency/QueryfoodSafetySystemList`,data,{loading:true})


export  let  findChainStoreTree= data => request.get(`${VUE_APP_ADMIN_API}/food/safety/chain/store/findChainStoreTree`,data,{loading:true})

// 重点单位列表

export  let  findSuperviseAndBackgroundList= data => request.post(`${VUE_APP_ADMIN_API}/ssa/back/ground/findSuperviseAndBackgroundList`,data,{loading:true})


export  let  findSuperviseAndBackground= data => request.post(`${VUE_APP_ADMIN_API}/ssa/back/ground/findSuperviseAndBackground`,data,{loading:true})



export  let  exportFindSuperviseAndBackground= data => request.get(`${VUE_APP_ADMIN_API}/ssa/back/ground/exportFindSuperviseAndBackground`, { params: data, isAuth: true, loading: true, responseType: "blob" })
export  let  exportSuperviseAndBackgroundList= data => request.get(`${VUE_APP_ADMIN_API}/ssa/back/ground/exportSuperviseAndBackgroundList`, { params: data, isAuth: true, loading: true, responseType: "blob" })


export  let  findPeopleType= data => request.post(`${VUE_APP_ADMIN_API}/ssa/responsibility/chainStore/findPeopleType`, data,{loading:true})

export  let getPdfResponsibilityRecord= data => request.get(`${VUE_APP_ADMIN_API}/ssa/responsibility/chainStore/getPdfResponsibilityRecord`, data);
export  let exportQueryWorkstationMap= data => request.get(`${VUE_APP_ADMIN_API}/food/safety/chain/store/exportQueryWorkstationMap`,  { params: data, isAuth: true, loading: true, responseType: "blob" });